package com.pmcc.platform.shopping.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "bp_shopping")
@org.hibernate.annotations.Table(appliesTo = "bp_shopping", comment = "导购")
public class Shopping extends BaseEntity {

    @Column(columnDefinition = "varchar(100) COMMENT '导购姓名'")
    private String name;//推销员姓名

    @Column(columnDefinition = "varchar(100) COMMENT '导购手机号'")
    private String phone;//推销员手机号

    @Column(columnDefinition = "varchar(100) COMMENT '是否为临时导购'")
    private String isPerpetual;//是否为临时导购     0：不是   1：是

    @Column(columnDefinition = "varchar(100) COMMENT '当前所在店铺id'")
    private String shopId;//当前所在店铺id

    @Column(columnDefinition = "varchar(100) COMMENT '业务员id'")
    private String salesmanId;//业务员id


    @Column(columnDefinition = "varchar(255) COMMENT '小程序用户id'")
    private String miniUserId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "statrTime")
    private Date startTime;//开始时间

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "endTime")
    private Date endTime;//结束时间

    @Transient
    private String salesmanName;//业务员名字

    @Transient
    private String salesmanPhone;//业务员手机号

    @Transient
    private String shopName;//店铺名字

    @Transient
    private int getNum;  //发送赠品数量

    @Transient
    private String image;




}
